﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class LevelView : MonoBehaviour {
    public LevelManageer levelManageer;
    public Button localBTn;
    public Button RangeBtn;
// Use this for initialization
void Start () {
        levelManageer = GetComponent<LevelManageer>();
        localBTn = transform.Find("LocalBtn").GetComponent<Button>();
        RangeBtn = transform.Find("RangeBtn").GetComponent<Button>();
        localBTn.onClick.AddListener(delegate () { levelManageer.levelController.localBTnEvent(localBTn.GetComponentInChildren<Text>().text); });
        RangeBtn.onClick.AddListener(delegate () { levelManageer.levelController.RangeBtnEvent(RangeBtn.GetComponentInChildren<Text>().text); });

    }

    // Update is called once per frame
    void Update () {
		
	}
}
